using System;
using System.Reflection;
using UnityEngine;
using UnityEngine.Events;
#if UNITY_EDITOR
using UnityEditor.Events;
#endif
[Serializable]
public class ItemEvent : UnityEvent<Item>, IFunctionEvent{
    public void Add(MethodInfo method){
        #if UNITY_EDITOR
        UnityEventTools.AddPersistentListener(
            this,
            Delegate.CreateDelegate(typeof(UnityAction<Item>), method) as UnityAction<Item>
        );
        #endif
    }
}
public class ItemFunction : MonoBehaviour
{
    
}
